#/bin/bash

APP_DIR=/www/python/host/
nginx=/usr/local/nginx/sbin/nginx
lockfile=/var/lock/subsys/nginx
NGINX_CONF_FILE="/usr/local/nginx/conf/nginx.conf"
prog=$(basename $nginx)

nginx_stop() {
	echo "Stoping $prog..."
	$nginx -s stop
}

uwsgi_stop() {
	echo "Stoping UWSGI..."
	uwsgi --stop /tmp/uwsgi.pid
	rm -f /tmp/uwsgi.pid
}

nginx_stop
uwsgi_stop
